package edu.ccut.saturn.studio.logic.figure;


public class SaturnLayout {

	private SaturnLayout() {

	}

	public static String restrictNameLong(String name, int len) {
		String result = "";
		String aa = name;
		if (aa.length() > len) {
			while (aa.length() > len) {
				result = result + aa.substring(0, len) + "\n";
				aa = aa.substring(len);
			}
			handleLeave(aa, len);
			result = result + handleLeave(aa, len);

		}
		if (result.equalsIgnoreCase("")) {
			result = name;
		}
		return result;
	}

	public static String handleLeave(String leavings, int len) {
		String result = "";
		result = result + leavings;
		return result;
	}
}
